#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

extern "C"{
#include "beep_test.h"
#include "led_test.h"

#include "fan_test.h"
}
#include "cliect.h"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    bool fan_onOff = false;
    bool led_onOff = false;
    bool beep_onOff = false;
    bool fal_manul = false;

    void setFan(bool);
    void setLed(bool);
    void setBeep(bool);
    void checkWarn();

    int temperatureMin = 20;
    int temperatureMax = 40;
    int humidityMin = 70;
    int humidityMax = 90;

    int temperature = -1;
    int humidity = -1;
private slots:
    void on_pushButton_fan_clicked();

    void on_pushButton_voice_clicked();

    void on_pushButton_led_clicked();
    void slot_H();
    void slot_T();
private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
